<?php

if( ! defined('DOCROOT') )
{
    require_once '/var/www/advancelab/chilik2/unittest/bootstrap.php';
}

class RequestUserAgentTest extends UnitTestCase
{
    function testingRequestUserAgent()
    {
        $struct = new Entity\RequestUserAgent();
        
        $this->assertIdentical($struct,new Entity\RequestUserAgent);
        $this->assertTrue($struct instanceof Entity\RequestUserAgent);
        
        $struct->agent = 'php';
        $this->assertEqual( 'php', $struct->agent);
        
        /* $this->dump($struct); */
    }
    
    public function testMockingMethod()
    {
        $state = array(
        'agent' => 'php',
        );
        
        $struct = Entity\RequestUserAgent::__mock( $state );
        $this->assertEqual( 'php', $struct->agent);
    }
}

